/* ==============================================================================
 * 创 建 者：yqd
 * 创建日期：2017-11-02	
 * 功能描述：收件箱

 * 修 改 人:
 * 修改时间:
 * 修改描述：
 * ===========================================================
 */
//会员信息获取
var getMemberViewUrl = baseUrl + 'MemberF/MemberView';
//获取详情
var getDetailUrl = baseUrl + 'NoticeF/GetNewsDetail';

var vu;
var oid = getURLParameter("oid");

$(function(){
	mui.init();
	initVue();
})

function initVue(){
vu = new Vue({
    el: '#mescroll',
    data: {
    	member : '',
        NewsDetail : '',
    },
    mounted:function(){
   	 	this.getMemberView();
   	 	this.getDetail();
   	},
    methods: {
    	getMemberView : getMemberView,
        getDetail : getDetail,
    }
})
}
//vu.GetInMailList();
function getDetail(){
	common.get(getDetailUrl,{oid : oid},'json',function(r){
		if(r.ErrorCode==0){
			vu.NewsDetail = r.Data.NewsDetail;
		}else{
			mui.toast(r.ErrorMsg);
		}
	})
}

function getMemberView(){
	common.get(getMemberViewUrl,{},'json',function(r){
		if(r.ErrorCode==0){
			vu.member = r.Data.member;
		}else{
			mui.toast(r.ErrorMsg);
		}
	})
}

$(".mbInfo").on("tap","a",function(event){
	this.click();
})
